import React, {Component} from 'react';
import logo from './logo.svg';
import './App.css';
import WtHome from "./WtHome";
import WtRoute from "./route/WtRoute";
import {persistor, store} from "./store";
import LocaleProvider from "antd/es/locale-provider";
import {PersistGate} from 'redux-persist/es/integration/react'
import Provider from "react-redux/es/components/Provider";
import locale from 'antd/lib/locale-provider/zh_CN';
import moment from 'moment';

// 推荐在入口文件全局设置 locale
import 'moment/locale/zh-cn';
moment.locale('zh-cn');
class  App extends Component{
  constructor(props){
    super(props)
  }
    render() {
        return(
            <Provider store={store}>
                <PersistGate persistor={persistor}>
                    <LocaleProvider locale={locale}>
                        <WtRoute/>
                    </LocaleProvider>
                </PersistGate>
            </Provider>
        )
    }
}

export default App;
